<?php

class Admin_Form_Sendgrid extends Zend_Form {

    public function init() {
        $this->setMethod("post");

        $serverpath = new Zend_Form_Element_Text('serverPath');
        $serverpath->setLabel("Server Path:")
                ->setRequired()
                ->addFilter("StringTrim")
                ->setAttribs(array('placeholder' => 'Enter Server Path', 'class' => 'span12'));

        $username = new Zend_Form_Element_Text('username');
        $username->setLabel("User name:")
                ->setRequired()
                ->addFilter("StringTrim")
                ->setAttribs(array('placeholder' => 'Enter user name', 'class' => 'span12'));

        $password = new Zend_Form_Element_Text('password');
        $password->setLabel("Password:")
                ->setRequired()
                ->addFilter("StringTrim")
                ->setAttribs(array('placeholder' => 'Enter password', 'class' => 'span12'));

        $submit = new Zend_Form_Element_Submit('submit');
        $submit->setLabel("Update")
                ->setAttribs(array('class' => 'btn btn-success'));

        $this->addElements(array($serverpath, $username, $password, $submit));
    }

}

